package com.ttyec.park;

import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.util.Log;

import com.orhanobut.logger.AndroidLogAdapter;
import com.orhanobut.logger.Logger;
import com.ttyec.park.common.SharedPreferencesHelper;
import com.ttyec.park.websocket.AppResponseDispatcher;
import com.zhangke.websocket.WebSocketService;
import com.zhangke.websocket.WebSocketSetting;

/**
 * Created by MSI on 2017/6/8.
 */

public class WsApplication extends Application {

    private static Application context;


    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        initLog();
        initAppStatusListener();
    }


    /**
     * 初始化日志配置
     */
    private void initLog() {
        Logger.addLogAdapter(new AndroidLogAdapter());
    }

    /**
     * 初始化应用前后台状态监听
     */
    private void initAppStatusListener() {

    }

    public static Context getContext() {
        return context;
    }
}
